package com.zcyh.exam.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 试卷信息表
 */
@Data
@TableName("exam_test_paper_info")
public class TestPaperInfo extends BaseEntity<TestPaperInfo> {

	private String name;
	/**试卷总分*/
	private Integer mark;
//	private Integer passMark;
	/**排序*/
	private Integer sort;
	/**考试时间*/
	@TableField("exam_time")
	private Integer examTime;
	/**考试人数*/
	@TableField("exam_number")
	private Integer examNumber;
	/**已批改试卷数量*/
	@TableField("correct_number")
	private Integer correctNumber;
	/**试题数量*/
	@TableField("question_number")
	private Integer questionNumber;

	/**是否发布*/
	@TableField("publish_flag")
	private Boolean publishFlag;
	/**发布时间*/
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@TableField("publish_time")
	private Date publishTime;

	/**试卷开始时间*/
	@NotNull
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date starTime;
	/**试卷结束时间*/
	@NotNull
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date endTime;

	/**考试类型 0区域 1指定人员*/
	@NotNull
	private Integer type;
	/**区域code 逗号分隔*/
	@TableField(exist = false)
	private String areaCodes;
	/**指定人员 用于修改查询 json*/
	@TableField(exist = false)
	private String users;

	private String remark;

}
